package com.job.springSea.work0714;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author 于春海
 * @version 1.0
 * @since 2022-07-14 14:54:56
 */
public class UseSystem {
    public static void main(String[] args) {
        int[] src={1,2,3,4,5,6,7};
        int[] dest=new int[5];
        System.arraycopy(src, 1, dest, 1, 3);
        System.out.println(Arrays.toString(dest));

        System.out.println(System.getProperty("os.version"));
        System.out.println(System.getProperty("os.name"));
        System.out.println(System.getenv("JAVA_HOME"));

        String name="A";
        long t1 =System.currentTimeMillis();
        for (int i = 1; i < 7777777; i++) {
            name+=i;
        }
        long t2 =System.currentTimeMillis();
        System.out.println("循环耗时:"+(t2-t1)+"ms");


        Scanner sc = new Scanner(System.in);
        while(true){
            System.out.println("输入暗号:");
            String pass=sc.next();
            if("bye".equals(pass));
            {
                System.exit(0);
            }
            System.out.println("暗号不正确,请重新输入!");
        }
    }
}